package com.dataaccess.dataaccess;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(exclude={
        RedisAutoConfiguration.class,
        RedisRepositoriesAutoConfiguration.class
})//这个排除是为了排除redis依赖，否则会因没启动redis而报错
@ServletComponentScan
@EnableScheduling
@EnableAsync
public class DataaccessApplication {

    public static void main(String[] args) {
        SpringApplication.run(DataaccessApplication.class, args);
    }

}
